import {createBrowserRouter, RouteObject} from "react-router-dom";
import IndexPage from "@/router/IndexPage.tsx";
import LoginComponent from "@/component/login/LoginComponent.tsx";
import HomeComponent from "@/component/home/HomeComponent.tsx";
import NavigateComponent from "@/component/navigate/NavigateComponent.tsx";

/**
 * 系统路由配置
 */
const routeConfig: RouteObject[] = [
    {
        path: "/",
        element: <IndexPage/>
    },
    {
        path: "/nav",
        element: <NavigateComponent/>
    },
    {
        path: "/login",
        element: <LoginComponent/>
    },
    {
        path: "/home",
        element: <HomeComponent/>
    }
];


const router = createBrowserRouter(routeConfig);


export default router;